package com.maopuyu.services;

import com.maopuyu.entity.DistrictSchool;
import com.maopuyu.entity.HousingEstate;
import com.maopuyu.repositories.DistrictSchoolRepository;
import com.maopuyu.repositories.HousingEstateRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DistrictSchoolService {

    @Autowired
    private DistrictSchoolRepository districtSchoolRepository;

    public DistrictSchool findSchoolByDistrict(String district) {
        return districtSchoolRepository.findDistrictSchoolByDistrict(district);
    }
}
